package com.ext.springcloud.feign.promq;

import com.ext.springcloud.feign.fallback.promq.OrderSetProducerFeignFallbackService;
import com.ext.springcloud.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @FileName: OrderSetProducerFeignService
 * @Author: <a href="dongann@aliyun.com">dongchang'an</a>.
 * @CreateTime: 2021/8/16 9:19
 * @Version: v1.0
 * @description:
 */
@FeignClient(value = "springcloud-mq-producer", fallback = OrderSetProducerFeignFallbackService.class)
public interface OrderSetProducerFeignService {

    @PostMapping("/msgProducer/sendSetOrderMsg")
    public CommonResult sendSetOrderMsg(@RequestParam(value = "orderMsg") String orderMsg);
}
